package edu.sctu.zcy.month201506.day20150614.iotest;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 * Created by user24 on 2015/6/14.
 */
public class ProgramEntry1 {

    private static final String FILE_PATH = "D://ZCY2";
    private static final String CREATE_NEW_FILE_ONE = "//zcy1.txt";
    private static final String CREATE_NEW_FILE_TWO = "//zcy1.txt";
    public static void main(String[] args) throws IOException {

        BufferedReadDemo bufferedReadDemo = new BufferedReadDemo();
        bufferedReadDemo.creatFile(new File(FILE_PATH));
        File file = bufferedReadDemo.creatNewFile(FILE_PATH, CREATE_NEW_FILE_ONE);
        String content = "一小组加油";


            FileWriter fileWriter = new FileWriter(file);
            fileWriter.write(content);
            fileWriter.close();

           FileReader fileReader = new FileReader(file);
           fileReader.read();




    }
}
